package com.hdoit.apollo.logical.cargo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hdoit.apollo.logical.cargo.model.Cargo;
import com.hdoit.apollo.logical.viewmodel.cargo.CargoSearch;
import com.tennetcn.data.dao.base.IMapper;
import com.tennetcn.data.message.PagerModel;

/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年03月31日 15:09:30
 * @comment
 */
@Repository(value="cargoMapper")
public interface CargoMapper extends IMapper<Cargo>{

	public Cargo getCargoByCargoNo(@Param("cargoNo")String cargoNo, @Param("shopId")String shopId);

	public int checkCargoNo(@Param("cargoN")String cargoN);

	public Cargo queryModelByCollocationId(@Param("collocationId") String collocationId);

	public List<Cargo> queryListMPForPC(@Param("search") CargoSearch search, @Param("pager") PagerModel pagerModel);

	public Cargo queryModelForView(@Param("key") String key);

	public Cargo queryCargoById(@Param("cargoId") String cargoId);

	public Cargo getCargoByShapeCode(@Param("shapeCode") String shapeCode,@Param("shopId") String shopId);

	public List<Cargo> queryListMPForWechat(@Param("search")CargoSearch search,@Param("pager")PagerModel pagerModel);

}